<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i> Faculty Registration</h2>

                
            </div>
            <div class="box-content">
                <form role="form" action="UpdateFacultyAction.do" method="post">
                    
                  
                    
                    <div class="form-group">
                        
                        <input type="hidden" name="id" value="${applicationScope.detail_faculty.id}">
                        
                        <label for="exampleInputEmail1">First Name</label>
                        <input type="text" name="fname" value="${applicationScope.detail_faculty.fname}" class="form-control" id="exampleInputEmail1" placeholder="Enter First Name">
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="fname_error_txt"><html:errors property="fname" ></html:errors></span>
                    </div>
                    <div class="form-group">
                        
                        <label for="exampleInputEmail1">Middle Name</label>
                        <input type="text" name="mname" value="${applicationScope.detail_faculty.mname}" class="form-control" id="exampleInputEmail1" placeholder="Enter Middle Name">
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="mname_error_txt"><html:errors property="mname" ></html:errors></span>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">Last Name</label>
                        <input type="text" name="lname" value="${applicationScope.detail_faculty.lname}" class="form-control" id="exampleInputEmail1" placeholder="Enter Last Name">
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="mname_error_txt"><html:errors property="lname" ></html:errors></span>
                    </div>
                    
                    <div class="form-group">
                        <label for="exampleInputEmail1">Gender</label>
                        <div class="radio">
                    <label>
                        <input type="radio" name="gender" id="optionsRadios1" value="male" checked="">
                        Male
                    </label>
                    </div>
                    <div class="radio">
                        <label>
                        <input type="radio" name="gender" id="optionsRadios1" value="female" checked="">
                        Female
                    </label>
                    </div>
<!--                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="gender_error_txt"><html:errors property="gender" ></html:errors></span>-->
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">Email</label>
                        <input type="email" name="email" value="${applicationScope.detail_faculty.email}" class="form-control" id="exampleInputEmail1" placeholder="Enter Email">
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="email_error_txt"><html:errors property="email" ></html:errors></span>
                    </div>
                   
                     <div class="form-group">
                       
                        <input type="hidden" name="password" value="${applicationScope.detail_faculty.password}" class="form-control" id="exampleInputEmail1" placeholder="Enter password ">
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="mname_error_txt"><html:errors property="lname" ></html:errors></span>
                    </div>
                    
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">Contact Number</label>
                        <input type="text" name="contact" value="${applicationScope.detail_faculty.contact}" class="form-control" id="exampleInputEmail1" placeholder="Enter Contact">
                        <span style="color: #91170a;font-family: serif;font-size: 14px" id="password_error_txt"><html:errors property="contact" ></html:errors></span>
                    </div>
                         <c:if test="${sessionScope.usertype eq 'admin'}">
                                 <input type="hidden" name="addedby" value="${sessionScope.admin.id}">
                                 
                        </c:if>
                    
                    <div class="form-group">
                    <button type="submit" class="btn btn-default">Submit</button>
                </form>

           
        </div>
    </div>
    <!--/span-->

</div><!--/row-->

    <!-- content ends -->
    </div><!--/#content.col-md-0-->
</div>